/*
 * @Author: wuhao930406 1148547900@qq.com
 * @Date: 2023-07-13 14:45:36
 * @LastEditors: wuhao930406 1148547900@qq.com
 * @LastEditTime: 2023-07-14 11:17:11
 * @FilePath: /legion-iot/src/access.js
 * @Description:
 *
 * Copyright (c) 2023 by ${git_name_email}, All Rights Reserved.
 */

export default function (initialState) {
  let { currentUser } = initialState;
  return {
    isadmin: !Object.keys(currentUser??{})?.includes("nick_name"),
  };
}
